package wsepForum.network.server.gate;

import wsepForum.domain.Session;

/**
 * UI interface towards the client
 * @author Ariel Rozen & Oren Ben Haim
 *
 */
public interface IUIController<T> {
	/**
	 * gets a token (with session)from the network module, 
	 * process it, and returns a string to send back to the user
	 * @param token a token received from the network module
	 * @param sesson the session that belongs to the client who sent the token
	 * @return string to send back to the user via network module
	 */
	String getRequest(T token, Session session);
	/**
	 * get the first message the UI wants to send to the client one he connecting
	 * @return the first message the UI wants to send to the client one he connecting
	 */
	String getWelcome();
}
